package com.yuelan.apartment.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.yuelan.apartment.common.ApaEntity;
import com.yuelan.common.core.domain.BaseEntity;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @description:
 * @Author: ZhaoYi
 * @date: 24-6-21 22:43
 */

@Data
@TableName("apa_rent_bill")
public class ApaRentBill extends ApaEntity {

    private static final long serialVersionUID = 1L;

    @TableId
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @TableField("cycle")
    private Integer cycle;

    @TableField("apartment_id")
    private Long apartmentId;

    @TableField("room_num")
    private String roomNum;

    @TableField("tenant_id")
    private Long tenantId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("collection_time")
    private Date collectionTime;

    @TableField("rent")
    private BigDecimal rent;

    @TableField("payment_type")
    private String paymentType;

    /**
     * 参数类型：'Collected','Uncollected','Overdue'
     */
    @TableField("status")
    private String status;

}
